import random,time

s =''
n = 0
while True:
    i = random.randint(0,190)
    while i > 0:
        s += ' '
        i -= 1
    if n % 7 == 0:
        s += 'Happy Birthday !'
    else:
        s += '*'

    print(s)
    s = ''
    n = (n+1) % 7
    time.sleep(0.3)